import {get} from "@/utils/http";
import config from "@/config/MenuConfig";

//轮播图数据
export const getSwiperListApi = ()=> get(config.swiper)
//热门分类
export const getHotCateListApi = () => get(config.hotcate)
//精品列表
export const getGoodFoodListApi = async (limit = 2) => {
    let { data } = await get(config.goodfood)
    return { data: data.slice(0, limit) }
  }